﻿<classes>
  <class name="Invoice" assembly="XmlTest.BO" table="tbInvoice" displayName="InvoiceDisplayName">
    <property name="InvoiceID" type="Guid" readWriteRule="WriteNew" compulsory="true" />
    <property name="InvoiceNo" type="Int32" readWriteRule="WriteNew" databaseField="InvoiceNoDBColName" default="def 01" compulsory="true" 
				autoIncrementing="true" displayName="Invoice No Displat Name" description="InvoiceNo descr" keepValuePrivate="true">
      <rule name="InvoiceNo">
        <add key="min" value="1" />
        <add key="max" value="10000" />
      </rule>
      <simpleLookupList>
        <item display="One" value="1" />
        <item display="two" value="2" />
        <item display="Three" value="3" />
      </simpleLookupList>
    </property>
    <primaryKey>
      <prop name="InvoiceID" />
    </primaryKey>
  </class>
  <class name="InvoiceItem" assembly="XmlTest.BO" displayName="Invoice Item">
    <property name="InvoiceItemID" type="Guid" readWriteRule="WriteNew" databaseField="InvoiceItemIDColName" compulsory="true" displayName="Invoice Item ID Disp Name" description="Invoice Item ID desc" />
    <primaryKey>
      <prop name="InvoiceItemID" />
    </primaryKey>
  </class>
</classes>